import java.util.Scanner;

// 注意类名必须为 Main, 不要有任何 package xxx 信息
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = scanner.nextInt();
        int[] number =new int[T];
        for(int i=0;i<T;i++){
            number[i] =scanner.nextInt();
        }
        int[] result = new int[T];
        for(int i =0;i<T;i++){
            if(number[i]==1){
                result[i]=2;
            }else if(number[i]==4){
                result[i]=4;

            }else if(number[i]==8){
                result[i]=7;

            }else if(number[i]==7){
                result[i]=3;
            }else if(number[i]==2 || number[i] ==3 || number[i] ==5){
                result[i]=5;

            }else if(number[i]==0 || number[i]==6 ||number[i]==9){
                result[i]=6;
            }
        }
        for(int i=0;i<T;i++){
            System.out.println(number[i]+ "leds");
        }
    }
}